<div class="questions view">
<h2><?php  __('Question');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $question['Question']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Test'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($question['Test']['title'], array('controller' => 'tests', 'action' => 'view', $question['Test']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Question Number'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $question['Question']['question_number']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Question Content'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $question['Question']['question_content']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Question Imageurl'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $question['Question']['question_imageurl']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Scorecheck Type'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $question['Question']['scorecheck_type']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Question', true), array('action' => 'edit', $question['Question']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Question', true), array('action' => 'delete', $question['Question']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $question['Question']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Questions', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Question', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tests', true), array('controller' => 'tests', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Test', true), array('controller' => 'tests', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Answerterms', true), array('controller' => 'answerterms', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Answerterm', true), array('controller' => 'answerterms', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Choices', true), array('controller' => 'choices', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Choice', true), array('controller' => 'choices', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Results', true), array('controller' => 'results', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Result', true), array('controller' => 'results', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Testeeanswers', true), array('controller' => 'testeeanswers', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Testeeanswer', true), array('controller' => 'testeeanswers', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Timechecks', true), array('controller' => 'timechecks', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Timecheck', true), array('controller' => 'timechecks', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Answerterms');?></h3>
	<?php if (!empty($question['Answerterm'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Question Id'); ?></th>
		<th><?php __('Answertype Id'); ?></th>
		<th><?php __('Score'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($question['Answerterm'] as $answerterm):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $answerterm['id'];?></td>
			<td><?php echo $answerterm['question_id'];?></td>
			<td><?php echo $answerterm['answertype_id'];?></td>
			<td><?php echo $answerterm['score'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'answerterms', 'action' => 'view', $answerterm['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'answerterms', 'action' => 'edit', $answerterm['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'answerterms', 'action' => 'delete', $answerterm['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $answerterm['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Answerterm', true), array('controller' => 'answerterms', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Choices');?></h3>
	<?php if (!empty($question['Choice'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Choice Number'); ?></th>
		<th><?php __('Question Id'); ?></th>
		<th><?php __('Choice Content'); ?></th>
		<th><?php __('Choice Imageurl'); ?></th>
		<th><?php __('Created Date'); ?></th>
		<th><?php __('Updated Date'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($question['Choice'] as $choice):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $choice['id'];?></td>
			<td><?php echo $choice['choice_number'];?></td>
			<td><?php echo $choice['question_id'];?></td>
			<td><?php echo $choice['choice_content'];?></td>
			<td><?php echo $choice['choice_imageurl'];?></td>
			<td><?php echo $choice['created_date'];?></td>
			<td><?php echo $choice['updated_date'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'choices', 'action' => 'view', $choice['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'choices', 'action' => 'edit', $choice['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'choices', 'action' => 'delete', $choice['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $choice['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Choice', true), array('controller' => 'choices', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Results');?></h3>
	<?php if (!empty($question['Result'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Test Id'); ?></th>
		<th><?php __('Testee Id'); ?></th>
		<th><?php __('Question Id'); ?></th>
		<th><?php __('Score'); ?></th>
		<th><?php __('Comment'); ?></th>
		<th><?php __('Created Date'); ?></th>
		<th><?php __('Modified Date'); ?></th>
		<th><?php __('Checked'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($question['Result'] as $result):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $result['id'];?></td>
			<td><?php echo $result['test_id'];?></td>
			<td><?php echo $result['testee_id'];?></td>
			<td><?php echo $result['question_id'];?></td>
			<td><?php echo $result['score'];?></td>
			<td><?php echo $result['comment'];?></td>
			<td><?php echo $result['created_date'];?></td>
			<td><?php echo $result['modified_date'];?></td>
			<td><?php echo $result['checked'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'results', 'action' => 'view', $result['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'results', 'action' => 'edit', $result['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'results', 'action' => 'delete', $result['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $result['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Result', true), array('controller' => 'results', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Testeeanswers');?></h3>
	<?php if (!empty($question['Testeeanswer'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Question Id'); ?></th>
		<th><?php __('Choice Id'); ?></th>
		<th><?php __('Testee Id'); ?></th>
		<th><?php __('Answser Text'); ?></th>
		<th><?php __('Del Flg'); ?></th>
		<th><?php __('Created Date'); ?></th>
		<th><?php __('Updated Date'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($question['Testeeanswer'] as $testeeanswer):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $testeeanswer['id'];?></td>
			<td><?php echo $testeeanswer['question_id'];?></td>
			<td><?php echo $testeeanswer['choice_id'];?></td>
			<td><?php echo $testeeanswer['testee_id'];?></td>
			<td><?php echo $testeeanswer['answser_text'];?></td>
			<td><?php echo $testeeanswer['del_flg'];?></td>
			<td><?php echo $testeeanswer['created_date'];?></td>
			<td><?php echo $testeeanswer['updated_date'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'testeeanswers', 'action' => 'view', $testeeanswer['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'testeeanswers', 'action' => 'edit', $testeeanswer['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'testeeanswers', 'action' => 'delete', $testeeanswer['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $testeeanswer['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Testeeanswer', true), array('controller' => 'testeeanswers', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Timechecks');?></h3>
	<?php if (!empty($question['Timecheck'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Time Number1'); ?></th>
		<th><?php __('Time Number2'); ?></th>
		<th><?php __('Time Check Type'); ?></th>
		<th><?php __('Question Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($question['Timecheck'] as $timecheck):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $timecheck['id'];?></td>
			<td><?php echo $timecheck['time_number1'];?></td>
			<td><?php echo $timecheck['time_number2'];?></td>
			<td><?php echo $timecheck['time_check_type'];?></td>
			<td><?php echo $timecheck['question_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'timechecks', 'action' => 'view', $timecheck['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'timechecks', 'action' => 'edit', $timecheck['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'timechecks', 'action' => 'delete', $timecheck['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $timecheck['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Timecheck', true), array('controller' => 'timechecks', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
